package com.learn.sqlsession;

import com.learn.pojo.Configuration;
import com.learn.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * @author WuLiangHang
 */
public interface Executor {

    /**
     * 执行查询方法
     *
     * @param configuration
     * @param mappedStatement
     * @param args
     * @param <E>
     * @return
     */
    <E> List<E> query(Configuration configuration, MappedStatement
            mappedStatement, Object... args) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InstantiationException, IntrospectionException, InvocationTargetException;


}
